const express = require("express");
const router = express.Router();

// RESTful API
router.get("/api/courses", (req, res) => {
  res.send("hello world");
});

router.post("/api/courses", (req, res) => {
  res.send("post request");
});

router.put("/api/courses", (req, res) => {
  res.send("put request");
});

router.delete("/api/courses", (req, res) => {
  res.send("delete request");
});

module.exports = router;
